<?php

namespace App\Containers\AppSection\Project\Actions;

use App\Containers\AppSection\Project\Models\Project;
use App\Containers\AppSection\Project\Tasks\FindProjectByIdTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class GetProjectAction extends Action
{
    public function run($id, Request $request): Project
    {
        return app(FindProjectByIdTask::class)->addRequestCriteria()->run($id);
    }
}
